package com.y.ari.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.y.ari.common.RestResponse;
import com.y.ari.dto.UserDTO;
import com.y.ari.dto.UserFormDto;
import com.y.ari.dto.UserHeadInfoDto;
import com.y.ari.entity.User;

/**
 * <p>
 * 用户信息 服务类
 * </p>
 *
 * @author yang
 * @since 2023-04-19
 */
public interface UserService extends IService<User> {

    /**
     * 发送验证码
     *
     * @param phone
     * @return
     */
    public String sendMsg(String phone);


    public String signUp(UserFormDto userFormDto);

    public boolean checkCode(String phone, String code);

    void changePaw(UserFormDto userFormDto);

    public String login(UserFormDto userFormDto);

    UserHeadInfoDto selHeadInfo();

    public UserDTO selUser();

    public UserDTO modifyUser(UserDTO userDTO);

    String modifyPhone(UserFormDto userFormDto);

    RestResponse modifyAut(UserDTO userDTO);
}
